package com.guoxin.chapter3.waitnotify.stack2new;

public class ThreadP extends Thread {
	private Producer producer;
	
	public ThreadP(Producer producer) {
		super();
		this.producer = producer;
	}

	@Override
	public void run() {
		while(true){
			producer.pushService();
		}
	}
}
